package com.jkoss.wine.merchant.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import cn.afterturn.easypoi.excel.annotation.Excel;


/**
 * 
 * 
 * @Author Ning
 * @Version 1.0, 2018-09-28
 * @See
 * @Since com.jkoss.mengal.merchant.entity
 * @Description: TODO
 */
@TableName("merchant_product")
public class MerchantProduct extends Model<MerchantProduct> {

    private static final long serialVersionUID = 1L;

    @TableId("merchant_product_id")
    private String merchantProductId;
    @TableField("merchant_product_type_id")
    private String merchantProductTypeId;
    @Excel(name = "商品名称", orderNum = "0", width = 30)
    @TableField("product_name")
    private String productName;
    @TableField("shop_asset_url")
    private String shopAssetUrl;
    @TableField("price_")
    private Integer price;
    /**
     * 自定义属性 (存放json)
     */
    @TableField("custom_properties")
    private String customProperties;
    /**
     * 即将删除
     */
    @TableField("freight_price_")
    private Integer freightPrice;
    @TableField("add_time")
    private Date addTime;
    @TableField("operator")
    private String operator;
    /**
     * 状态 0正常 1下架 2库存不足
     */
    @TableField("state")
    private Integer state;
    /**
     * 是否删除 0否1是
     */
    @TableField("del")
    private Integer del;


    public String getMerchantProductId() {
        return merchantProductId;
    }

    public void setMerchantProductId(String merchantProductId) {
        this.merchantProductId = merchantProductId;
    }

    public String getMerchantProductTypeId() {
        return merchantProductTypeId;
    }

    public void setMerchantProductTypeId(String merchantProductTypeId) {
        this.merchantProductTypeId = merchantProductTypeId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getShopAssetUrl() {
        return shopAssetUrl;
    }

    public void setShopAssetUrl(String shopAssetUrl) {
        this.shopAssetUrl = shopAssetUrl;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public String getCustomProperties() {
        return customProperties;
    }

    public void setCustomProperties(String customProperties) {
        this.customProperties = customProperties;
    }

    public Integer getFreightPrice() {
        return freightPrice;
    }

    public void setFreightPrice(Integer freightPrice) {
        this.freightPrice = freightPrice;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getDel() {
        return del;
    }

    public void setDel(Integer del) {
        this.del = del;
    }

    @Override
    protected Serializable pkVal() {
        return this.merchantProductId;
    }

    @Override
    public String toString() {
        return "MerchantProduct{" +
        ", merchantProductId=" + merchantProductId +
        ", merchantProductTypeId=" + merchantProductTypeId +
        ", productName=" + productName +
        ", shopAssetUrl=" + shopAssetUrl +
        ", price=" + price +
        ", customProperties=" + customProperties +
        ", freightPrice=" + freightPrice +
        ", addTime=" + addTime +
        ", operator=" + operator +
        ", state=" + state +
        ", del=" + del +
        "}";
    }
}
